import { defineStore } from "pinia";
import { ref } from "vue";
export const useTreeStore = defineStore(
  "tree",
  () => {
    const tree = ref({});
    const setTree = (data) => {
      tree.value = data;
    };
    const clearTree=()=>{
      tree.value={}
    }
    return {
      tree,
      setTree,
      clearTree
    };
  },
  {
    persist: true,
  }
);
